package xyz.coolcsm.security.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 什锦
 * @since 2021-06-1
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_comment")
@ToString
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //评论唯一id
    private String commentId;

    private Integer qid;

    //1问答 2博客
    private Integer topicCategory;

   //(value = "评论标题
    private String topicTitle;

    //评论者id
    private String userId;

    //评论者昵称
    private String userName;

    //评论者头像
    private String userAvatar;

    //评论内容
    private String content;


    //评论创建时间
    @TableField(fill = FieldFill.INSERT)//自动填充
    private Date createTime;



}
